﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using Models;

namespace BLL
{
   public class GameManage
    {
        //新增
        public static bool AddGame(Game gm)
        {
            return GameService.AddGame(gm);
        }

        //删除
        public static bool DeleGame(int id)
        {
            return GameService.DeleGame(id);
        }

        //修改全部内容
        public static bool UpdaGame(Game gm)
        {
            return GameService.UpdaGame(gm);
        }

        //修改获赞数
        public static bool UpdaCountGame(Game gm)
        {
            return GameService.UpdaCountGame(gm);
        }

        //查询所有信息
        public static List<Game> SeleAllGame()
        {
            return GameService.SeleAllGame();
        }

        //查指定定id信息
        public static List<Game> SeleIdGame(int id)
        {
            return GameService.SeleIdGame(id);
        }

       //查询指定类型id信息
        public static List<Game> SeleTypeIdGame(int id)
        {
            return GameService.SeleTypeIdGame(id);
        }

        //查免费游戏信息
        public static List<Game> SeleMianFeiGame()
        {
            return GameService.SeleMianFeiGame();
        }
        //查付费游戏信息
        public static List<Game> SeleFuFeiGame()
        {
            return GameService.SeleFuFeiGame();
        }

        //查精选游戏信息
        public static List<Game> SeleJingXuanGame()
        {
            return GameService.SeleJingXuanGame();
        }

        //根据游戏名称模糊查询
        public static List<Game> SeleNameLikeGame(string name)
        {
            return GameService.SeleNameLikeGame(name);
        }

        //用户id查询用户下载的游戏
        public static List<Game> SeleGamejoinOrders(int usid)
        {
            return GameService.SeleGamejoinOrders(usid);
        }

       //取前10的热门游戏
        public static List<Game> SeleTopshiGame()
        {
            return GameService.SeleTopshiGame();
        }

        //热门游戏升序
        public static List<Game> SeleRQShengXuGame()
        {
            return GameService.SeleRQShengXuGame();
        }

        //热门游戏降序
        public static List<Game> SeleRQJiangXuGame()
        {
            return GameService.SeleRQJiangXuGame();
        }

        //游戏价格升序
        public static List<Game> SeleJGShengGame()
        {
            return GameService.SeleJGShengGame();
        }

        //游戏价格升序
        public static List<Game> SeleJGJiangGame()
        {
            return GameService.SeleJGJiangGame();
        }

    }
}
